<template>
	<view>
		<!-- <view class="lis_t">
			<image src="../../../shu1.png" mode="widthFix"></image>
			<view class="shuming">
				<text>书名：马克思主义基本原理概论</text>
				<text>作者：本书编写组 </text>
				<text>出版社：高等教育出版社 </text>
				<text>出版时间：2013 </text>
				<text>页数：295页</text>
			</view>
		</view> -->
		
		<!-- 横线 -->
		<!-- <hengxian></hengxian> -->
		
		<!-- 课程列表 -->
		<view class="kechbos">
			<view class="kc_list">
				<text class="bt">课程思政</text>
				<text class="nr" v-for="(itam,idnex) in con" @click="tz(itam.id)">{{itam.name}}</text>
			</view>
		</view>
	</view>
</template>

<script>
	export default{
		data(){
			return{
				id:[],
				con:[]
			}
		},
		onLoad(option) {
			this.id = option.id
			console.log(this.id)
		},
		created() {
			let that = this
			let params = {
				"id":that.id,
			  "pageNo":1,
			  "pageSize":99999
			}
			that.pyReq(that.$http.getClazzMindList,params,function(res){
					  that.con = res.result
			});
			// let headers={
			// 	  'content-type': 'application/x-www-form-urlencoded',
			// 	  'token': uni.getStorageSync('token')
			// }
			//  uni.request({
			// 	  url: that.$http.getClazzMindList,
			// 	  method: 'POST',
			// 	  data:params,
			// 	  header:headers,
			// 	  success: (res)=>{
			// 		  console.log(res)
			// 		  that.con = res.data.result
			// 	  },
			// 	  fail: (err)=>{
			// 		  console.log(err)
			// 	  }
			// })  
		},
		methods: {
			//导航
			tz(id){
				uni.navigateTo({
					url:'./list_xq?id='+id
				})
				// console.log(url)
			}
		}
	}
</script>
<style>
	.lis_t{
		display: flex;
		margin: 30upx 20upx;
	}
	.lis_t>image{
		width: 280upx;
		height: 280upx;
	}
	.shuming{
		width: 394upx;
	}
	.shuming text{
		display: block;
		font-size: 26upx;
		font-weight: 700;
		margin-top: 15upx;
		line-height: 40upx;
		overflow: hidden;
		text-overflow:ellipsis;
		white-space: nowrap;
	}
	
	.kechbos{
		
	}
	.kc_list{
		margin: 44upx 40upx;
		
	}
	.kc_list>text{
		display: block;
	}
	.bt{
		font-size: 30upx;
		font-weight: 700;
		margin-bottom: 20upx;
	}
	.nr{
		font-size: 26upx;
		line-height: 56upx;
		overflow: hidden;
		text-overflow:ellipsis;
		white-space: nowrap;
		border-bottom: solid 1px #999999;
		
	}
</style>
